﻿<%@ Page Title="" Language="C#" MasterPageFile="~/W_View/PageMaster.Master" AutoEventWireup="true" CodeBehind="DiviForecastPage.aspx.cs" Inherits="STHPMS1.Web.W_View.Decision.Needs.DiviForecastPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <%= UiHelper.RefJsFileHtml("/Scripts/Control/datagrid.js")%>
    <%= UiHelper.RefJsFileHtml("/Scripts/Control/dropdown.js")%>

    <script>
        function forecast()
        {
            var roadnet = $("#cmbAnniName").combobox("getValue")//资金模型名称
            
            var y = $("#cmbAnaly_Year").combobox("getValue")//分析年度
            $.messager.progress({
                title: '请等待',
                msg: '正在处理中...'
            });
            $.ajax({
                url: "/api/DiviForecast/forecast?rdnet=" + encodeURI(roadnet) + "&y=" + y,
                type: "post",
                complete: function () {
                    $.messager.progress('close');
                },
                success: function (msg) {
                    $.messager.alert("提示", "分析完成！");
                },
                error: function (msg) {
                    //错误处理
                    $.messager.alert('错误提示', msg.responseText, "error");
                }
            });
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <select id="cmbAnniName" class="easyui-combobox" panelHeight="80" style="width:100px" data-options="prompt:'资金模型名称',url:'/api/dfcostmodpara/anniname',method:'get',valueField:'id',textField:'id'">
         </select>


         <select id="cmbAnaly_Year" class="easyui-combobox" name="cmbAnaly_Year" data-options="prompt:'分析年度'" style="width:100px;">   
            <option value="2015">2015年</option>   
            <option value="2016">2016年</option>   
            <option value="2017">2017年</option>   
            <option value="2018">2018年</option>   
            <option value="2019">2019年</option>   
        </select>  
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="forecast()">分析</a>
</asp:Content>
